<?php

class Sandybox extends Controller {

	function Sandybox()
	{
		parent::Controller();	
	}
	
	function index()
	{
    $this->load->library('Module');
    
    $this->module->render('test',false);
    echo '<hr />';
    $this->module->render('broken',false);
    echo '<hr />';
    echo $this->module->render('test');
  }
	
	function debugger()
	{
	 $this->load->library('Debugger');
      echo '<div class="krumo-title">$this->debugger->dump(array(\'a1\'=> \'A1\', 3, \'red\', $_SERVER));</div>';
      echo $this->debugger->dump(array('a1'=> 'A1', 3, 'red',$_SERVER));
      echo '<div class="krumo-title">$this->debugger->dump($_SERVER);</div>';
      echo $this->debugger->dump($_SERVER);
      echo '<div class="krumo-title">$this->debugger->dump(array(\'SELECT * FROM table\', \'SELECT * FROM table2 WHERE id = 1\'));</div>';
      echo $this->debugger->dump(array('SELECT * FROM table', 'SELECT * FROM table2 WHERE id = 1'));
      echo $this->debugger->classes();
      echo $this->debugger->defines();
      echo $this->debugger->functions();
      echo $this->debugger->includes();
      echo $this->debugger->backtrace();
	}
	
}
?>
